package com.example.shaoying.yuejian.model;


import com.example.shaoying.yuejian.common.Constants;
import com.example.shaoying.yuejian.javabean.Train;
import com.example.shaoying.yuejian.javabean.TrainInfo;
import com.example.shaoying.yuejian.service.activityService;
import com.example.shaoying.yuejian.service.clubeService;

import java.util.List;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/4/19.
 */

public class ActivityModel {
    private Retrofit retrofit;
    public ActivityModel(){
                retrofit = new Retrofit.Builder()
                .baseUrl(Constants.SERVERADDRESS)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
    public Call getActList(){
        activityService  service=retrofit.create(activityService.class);
        return service.getActList();
    }
    public Call getActDetil(String id){
        activityService  service=retrofit.create(activityService.class);
        return service.getActDetail(id);
    }
    public Call getTeaList(int page){
        activityService  service=retrofit.create(activityService.class);
        return service.getTeaList(page);
    }
    public Call getTeaInfo(String id){
        activityService  service=retrofit.create(activityService.class);
        return service.getTeaInfo(id);
    }
    public Call getlistsGame(){
        activityService  service=retrofit.create(activityService.class);
        return service.getlistsGame();
    }
    public Call getVideoList(String id,String mp){
        activityService  service=retrofit.create(activityService.class);
        return service.getVideoList(id,mp);
    }
    public Call getAskList(String id){
        activityService  service=retrofit.create(activityService.class);
        return service.getAskList(id);
    }
    public Call problem(String master_id,String userid,String question){
        activityService  service=retrofit.create(activityService.class);
        return service.problem(master_id,userid,question);
    }

}
